<?php
# @Author: yongleicheng <jetox>
# @Date:   2017-11-21T02:58:02+08:00
# @Email:  admin@weiqisheng.cn
# @Project: WQSCMS
# @Filename: Ajax.php
# @Last modified by:   jetox
# @Last modified time: 2017-11-21T03:29:07+08:00
# @Copyright: 微企胜网络科技有限公司




namespace app\admin\controller;

//use think\{Controller,Db,Input};//
use think\Controller;
use think\Db;
use think\Input;

class Ajax extends Common
{
    public function getRegion()
    {
        $Region=db("region");
        $map['pid']=input("pid");
        $map['type']=input("type");
        $list=$Region->where($map)->select();
        echo json_encode($list);
    }
}
